package com.itheima.vo.pms;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("pms_product")
public class Product implements Serializable {
    //画册图片，连产品图片限制为5张，以逗号分割
    @TableField("album_pics")
    private String albumPics;

    //品牌id
    @TableField("brand_id")
    private Long brandId;

    //品牌名称
    @TableField("brand_name")
    private String brandName;

    //删除状态：0->未删除；1->已删除
    @TableField("delete_status")
    private int deleteStatus;

    //商品描述
    private String description;

    //细节描述
    @TableField("detail_desc")
    private String detailDesc;

    //产品详情网页内容
    @TableField("detail_html")
    private String detailHtml;

    //移动端网页详情
    @TableField("detail_mobile_html")
    private String detailMobileHtml;

    //详细信息标题
    @TableField("detail_title")
    private String detailTitle;

    //模版id
    @TableField("feight_template_id")
    private Long feightTemplateId;

    //赠送的成长值
    @TableField("gift_growth")
    private int giftGrowth;

    //赠送的积分
    @TableField("gift_point")
    private int giftPoint;

    //商品id
    private Long id;

    //关键词
    private String keywords;

    //库存预警值
    @TableField("low_stock")
    private int lowStock;

    private String name;

    //新品状态:0->不是新品；1->新品
    @TableField("new_status")
    private int newStatus;

    //笔记
    private String note;

    //市场价
    @TableField("original_price")
    private BigDecimal originalPrice;

    //
    private String pic;

    //是否为预告商品：0->不是；1->是
    @TableField("preview_status")
    private int previewStatus;

    //价格
    private BigDecimal price;

    //属性类别id
    @TableField("product_attribute_category_id")
    private Long productAttributeCategoryId;

    //类别
    @TableField("product_category_id")
    private Long productCategoryId;

    //商品分类名称
    @TableField("product_category_name")
    private String productCategoryName;

    //货号
    @TableField("product_sn")
    private String productSn;

    //促销结束时间
    @TableField("promotion_end_time")
    private Date promotionEndTime;

    //活动限购数量
    @TableField("promotion_per_limit")
    private int promotionPerLimit;

    //促销价格
    @TableField("promotion_price")
    private BigDecimal promotionPrice;

    //促销开始时间
    @TableField("promotion_start_time")
    private Date promotionStartTime;

    //促销类型：0->没有促销使用原价;1->使用促销价；2->使用会员价；3->使用阶梯价格；4->使用满减价格；5->限时购
    @TableField("promotion_type")
    private int promotionType;

    //上架状态：0->下架；1->上架
    @TableField("publish_status")
    private int publishStatus;

    //推荐状态；0->不推荐；1->推荐
    @TableField("recommand_status")
    private int recommandStatus;

    //销量
    private int sale;

    //以逗号分割的产品服务：1->无忧退货；2->快速退款；3->免费包邮
    @TableField("service_ids")
    private String serviceIds;

    //排序
    private int sort;

    //库存
    private int stock;

    //副标题
    @TableField("sub_title")
    private String subTitle;

    //单位
    private String unit;

    //限制使用的积分数
    @TableField("use_point_limit")
    private int usePointLimit;

    //审核状态：0->未审核；1->审核通过
    @TableField("verify_status")
    private int verifyStatus;

    //商品重量，默认为克
    private BigDecimal weight;
}
